<?php
/**
 * Created by PhpStorm.
 * User: 刘芳
 * Date: 2019/3/31
 * Time: 21:42
 */

namespace app\api\model;


use think\Model;

class BaseModel extends Model
{

    protected function _getUrlAttr($value,$data){
        if ($data['from'] == 1)
        {
            return config('setting.img_prefix').$value;
        }
        else
        {
            return $value;
        }
    }
}